<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>辅助物料--区域新增</title>
		<link rel="stylesheet" type="text/css" href="<%=path%>/css/public.css">
		<script type="text/javascript" charset="UTF-8"
			src="<%=path%>/js/sorttable.js"></script>
		<script language="JavaScript" charset="UTF-8"
			src="<%=path%>/js/public.js"></script>
		
		<script type="text/javascript" charset="UTF-8"
			src="<%=path%>/js/validate.js"></script>
			
		<script type="text/javascript">
			function validate() {
				var code = document.getElementById("code");
				var name = document.getElementById("name");
				if(!isNotNull(code, "代码") || !f_check_number(code, "代码") || !f_check_stringLength(code, '代码', 12))
					return false;
				if(!isNotNull(name, "名称") || !f_check_ZhOrNumOrLett(name, "名称") || !f_check_stringLength(name, '名称', 12))
					return false;
			}
		</script>
	</head>

	<body>
		<div align="center" id="info_all" style="width: 300px;">
			<div id="info_top">
				辅助物料--区域新增
			</div>
			<s:form action="addArea.action" theme="simple"
				onsubmit="return validate()" id="delrow">
				<div style="padding: 4px; width: 200px; margin-top: 6px;">
					<table
						style="margin-top: 10px; background: #fbfbfb; color: #403040;"
						align="center">
						<tr>
							<td width="60px">
								代码*
							</td>
							<td>
								<s:textfield name="area.areaCode" size="12" id="code"></s:textfield>
							</td>
						</tr>
						<tr>
							<td width="60px">
								名称*
							</td>
							<td>
								<s:textfield name="area.areaName" size="12" id="name"></s:textfield>
							</td>
						</tr>
						<tr>
							<td colspan="1">
								<div style="margin: 6px; text-align: right;">
									<input type="submit" value="保存" onFocus="this.blur()"
										onmouseover="this.className='btnover'"
										onmouseout="this.className='btnout'" class="btnsize" />

								</div>
							</td>
							<td colspan="1">
								<div style="margin: 6px; text-align: left;">

									<input type="button" value="返回" onclick="history.go(-1)"
										onFocus="this.blur()" onmouseover="this.className='btnover'"
										onmouseout="this.className='btnout'" class="btnsize" />
								</div>
							</td>
						</tr>
					</table>
				</div>
			</s:form>
		</div>
	</body>
</html>